From 431a4ca6d3b582ba1e949b667fe278c93217f8cb Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Thu, 11 Jun 2015 18:42:08 +0200 Subject: migrating to aur4 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- xz-java-git [disowned]/PKGBUILD | 43 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 xz-java-git [disowned]/PKGBUILD (limited to 'xz-java-git [disowned]') diff --git a/xz-java-git [disowned]/PKGBUILD b/xz-java-git [disowned]/PKGBUILD new file mode 100644 index 0000000..88dbed7 --- /dev/null +++ b/xz-java-git [disowned]/PKGBUILD @@ -0,0 +1,43 @@ +# Maintainer: Mattias Andrée <`base64 -d`(bWFhbmRyZWUK)@member.fsf.org> +pkgname=xz-java-git +pkgver=20130129 +pkgrel=1 +pkgdesc="Java library for XZ and LZMA compression" +arch=('any') +url="http://tukaani.org/xz/java.html" +license=('Public Domain') +depends=('java-runtime>=1.4') +makedepends=('git' 'java-environment>=1.4') +provides=('xz-java') +conflicts=('xz-java') + +_gitroot=http://git.tukaani.org/xz-java.git +_gitname=xz-java + +build() { + cd "$srcdir" + msg "Connecting to GIT server...." + + if [[ -d "$_gitname" ]]; then + cd "$_gitname" && git pull origin + msg "The local files are updated." + else + git clone "$_gitroot" "$_gitname" + fi + + msg "GIT checkout done or server timeout" + msg "Starting build..." + + rm -rf "$srcdir/$_gitname-build" + git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build" + cd "$srcdir/$_gitname-build" + + javac -source 1.4 -target 1.4 -d . -s src -cp . $(find src | grep \\.java\$) + jar -cf xz-java.jar $(find . | grep \\.class\$) +} + +package() { + cd "$srcdir/$_gitname-build" + install -d "$pkgdir/usr/lib/" + install -m 755 xz-java.jar "$pkgdir/usr/lib/" +} -- cgit v1.2.3-70-g09d2